package com.yilin.tms.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.entity.system.system.Menu;
import com.yilin.tms.core.entity.system.system.MenuOperate;
import com.yilin.tms.core.entity.user.UserType;

import java.util.List;

public interface IMenuService extends IService<Menu> {

    List<Menu> getMenuList(Menu query);

    List<Menu> getChildMenuList(Menu query, String parentId);

    List<Menu> getMenuListByCodes(String[] menuCodes);

    List<Menu> getMenuListByUserTypeAndCodes(UserType userType, String[] menuCodes);

    void saveMenu(Menu menu);

    List<Menu> getMenuByParentId(String parentId);

    void saveMenuOperate(MenuOperate operate);

    List<MenuOperate> getMenuOperateListByMenuId(String menuId);

    List<MenuOperate> getMenuOperateListByMenuCode(String menuCode);

    List<MenuOperate> getMenuOperateListByCodes(String menuId,String[] menuOperateCodes);

    MenuOperate getMenuOperateByCode(String menuId, String symbol);

    void deleteMenuOperateByMenuId(String id);


    void deleteMenuOperateById(String id);



}
